package com.xwdeshj.repository;

import com.xwdeshj.entity.XwFarmPlaytype;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by BKWJA on 2018/12/21.
 * 农家乐游玩类型
 */
public interface XwFarmPlaytypeRepository extends JpaRepository<XwFarmPlaytype,Integer> {

    //farm_playType_encryptId根据农家乐游玩类型，查询该条记录信息
    public XwFarmPlaytype findByFarmPlaytypeEncryptid(String farm_playType_encryptId);

    ////farm_playType_encryptId根据农家乐游玩类型，删除该条记录信息，成功删除返回1，否则返回0
    public int deleteByFarmPlaytypeEncryptid(String farm_playType_encryptId);
}
